<?php
	require 'config.php';
	
	$id = $_POST['id'];
	$name = $_POST['name'];
	$price = $_POST['price'];
	$type = $_POST['type'];
	$numbers = $_POST['numbers'];
	$address = $_POST['address'];
	$introduction = $_POST['introduction'];


	mysql_query("UPDATE  r_commodity SET commodity_uid='$id',Course_Name='$name',Price='$price',Kind='$type',Amount='$numbers',Address='$address',Course_Description='$introduction' WHERE commodity_uid='$id'") or die('SQL 错误！');

	echo mysql_affected_rows();
	
	mysql_close();
?>